package com.qst.survey.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @Date: 2021/3/18 20:08
 * @Description: 这个是问题题目表的实体类
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("question_topic")
public class QuestionTopic {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;   //题目的编号

    private Integer questionId;  //问题的id

    private Integer numb;  //题目的题号

    private String title;     //题目的标题

    private String fileSrc; //资源地址,没有就是 问答题

    private Integer answerType; //题目类型,如果为0则表示这是一道问答题,1 就是一道单选题,2就是多选题

    private Integer answerNumb;  //选项数量

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;  //修改时间


    @TableField(fill = FieldFill.INSERT)
    private Date createTime;  //创建时间

    @TableLogic
    private Integer deleted;  //逻辑删除

    @TableField(exist = false)
    private ArrayList<String> answer;


    @TableField(exist = false)
    private List<QuestionAnswer> answers;
}
